#ifndef ADDUSERWIDGET_H
#define ADDUSERWIDGET_H
#include <QWidget>
#include <QLabel>
#include <QLineEdit>
#include <QComboBox>
#include <QPushButton>
#include <QListWidget>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QGridLayout>
#include <QtSql>
#include <QMessageBox>
#include <QListWidgetItem>


class AddUserWidget : public QWidget
{
    Q_OBJECT
public:
    explicit AddUserWidget(QWidget *parent = 0);
private:
    QLabel* titleLabel;

    QWidget* verifyWidget;
    QLabel* verifyLabel;
    QLabel* usernameLabel;
    QLineEdit* usernameLineEdit;
    QLabel* passwordLabel;
    QLineEdit* passwordLineEdit;
    QPushButton* verifyOkButton;

    QWidget* changeWidget;
    QListWidget* usernameListWidget;
    QListWidget* passwordListWidget;
    QLabel* nameLabel;
    QLineEdit* nameLineEdit;
    QLabel* passLabel;
    QLineEdit* passLineEdit;
    QPushButton* addButton;
    QPushButton* deleteButton;
    QPushButton* quitButton;
public slots:
    void slotVerifyOkButton();
    void slotVerifyLineEditTextChange();
    void showListWidegt();
    void slotLineEditTextChange();
    void slotAddButton();
    void slotDeleteButton();
    void slotQuitButton();
};

#endif // ADDUSERWIDGET_H
